public final class TextUtil {
	private static final char[] validChars = { '_', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i',
		'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', '0',
		'1', '2', '3', '4', '5', '6', '7', '8', '9' };

	public static long method299(String string) {
		long l = 0L;
		for (int i = 0; i < string.length(); i++) {
			if (i >= 12) {
				break;
			}
			char c = string.charAt(i);
			l *= 37L;
			if (c >= 'A' && c <= 'Z') {
				l += (c + '\001' - 'A');
			} else if (c >= 'a' && c <= 'z') {
				l += (c + '\001' - 'a');
			} else if (c >= '0' && c <= '9') {
				l += (c + '\033' - '0');
			}
		}
		for (/**/; l % 37L == 0L && l != 0L; l /= 37L) {
			/* empty */
		}
		return l;
	}

	public static String method300(long l, int i) {
		if (l <= 0L || l >= 6582952005840035281L) {
			return "invalid_name";
		}
		if (l % 37L == 0L) {
			return "invalid_name";
		}
		int i_0_ = 0;
		char[] cs = new char[12];
		while (l != 0L) {
			long l_1_ = l;
			l /= 37L;
			cs[11 - i_0_++] = TextUtil.validChars[(int) (l_1_ - l * 37L)];
		}
		return new String(cs, 12 - i_0_, i_0_);
	}

	public static long method301(int i, String string) {
		string = string.toUpperCase();
		long l = 0L;
		i = 11 / i;
		for (int i_2_ = 0; i_2_ < string.length(); i_2_++) {
			l = l * 61L + string.charAt(i_2_) - 32L;
			l = l + (l >> 56) & 0xffffffffffffffL;
		}
		return l;
	}

	public static String method302(int i, int i_3_) {
		if (i_3_ >= 0) {
			throw new NullPointerException();
		}
		return (String.valueOf(i >> 24 & 0xff) + "." + (i >> 16 & 0xff) + "." + (i >> 8 & 0xff)
			+ "." + (i & 0xff));
	}

	public static String method303(String string) {
		if (string.length() > 0) {
			char[] cs = string.toCharArray();
			for (int i_4_ = 0; i_4_ < cs.length; i_4_++) {
				if (cs[i_4_] == '_') {
					cs[i_4_] = ' ';
					if (i_4_ + 1 < cs.length && cs[i_4_ + 1] >= 'a' && cs[i_4_ + 1] <= 'z') {
						cs[i_4_ + 1] = (char) (cs[i_4_ + 1] + 'A' - 'a');
					}
				}
			}
			if (cs[0] >= 'a' && cs[0] <= 'z') {
				cs[0] = (char) (cs[0] + 'A' - 'a');
			}
			return new String(cs);
		}
		return string;
	}

	public static String method304(int i, String string) {
		StringBuffer stringbuffer = new StringBuffer();
		if (i != 2934) {
			for (int i_5_ = 1; i_5_ > 0; i_5_++) {
				/* empty */
			}
		}
		for (int i_6_ = 0; i_6_ < string.length(); i_6_++) {
			stringbuffer.append("*");
		}
		return stringbuffer.toString();
	}
}
